﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;

namespace Inventory.view
{
    public partial class index : System.Web.UI.Page
    {
        public string menuStr = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            Seller mSeller = (Seller)Session["CurrentUser"];//当前登陆人
            if (mSeller == null)
            {
                Response.Redirect("/login.aspx");
            }
            if (mSeller.Type == 0)//档口
            {
                menuStr += "<li><a href=\"javascript:void(0)\" url=\"/view/goodsclassfy.aspx\" issel='false'>产品分类</a></li>";
                menuStr += "<li><a href=\"javascript:void(0)\" url=\"/view/goodsinfo.aspx\" style=\"color:#f40\" issel='true'>产品列表</a></li>";
            }
            else if (mSeller.Type == 1)//卖家
            {
                menuStr += "<li><a href=\"javascript:void(0)\" url=\"/view/goodssearch.aspx\" issel='false'>产品列表</a></li>";
                menuStr += "<li><a href=\"javascript:void(0)\" url=\"/view/mygoods.aspx\" style=\"color:#f40\" issel='true'>我的产品</a></li>";
            }
        }
    }
}